package cqie.frame.response;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class CodeMsg {

    private int code;   //状态码
    private String msg; //提示信息

    public static CodeMsg SERVER_ERROR = new CodeMsg(500100, "服务端异常");
    public static CodeMsg PSW_ERROR = new CodeMsg(-1, "您输入密码有误");
    public static CodeMsg LOGIN_ERROR = new CodeMsg(2212, "账号或密码错误");
    public static CodeMsg ACCOUNT_ERROR = new CodeMsg(2212, "不存在该账号");
    public static CodeMsg STATUS_ERROR = new CodeMsg(2212, "该账号状态异常");
    public static CodeMsg OLDPSW_ERROR = new CodeMsg(-23, "您输入的原密码有误");
    public static CodeMsg PARENTTOCHILD_ERROR = new CodeMsg(6,"暂无将父级菜单转换为子级菜单权限");
    public static CodeMsg EMP_ERROR = new CodeMsg(-233,"还有员工属于该部门，不能删除");
    public static CodeMsg CLAZZ_COURSE_TEACHER_ERROR = new CodeMsg(-2323,"课表已存在，请重新编辑课表");
    public static CodeMsg CLAZZ_COURSE_TEACHER_NOT_ERROR = new CodeMsg(-232223,"根据条件未查到课表");

    public  CodeMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
